<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 86185
  Date: 2021/4/26
  Time: 20:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>班级列表</title>
</head>
<body>
${list}
<center>
<a href="/class/selectT"> 添加</a>
    <table border="1px">

        <tr>
            <td>班级编号</td>
            <td>班级名</td>
            <td>状态</td>
            <td>班主任</td>
            <td>教员</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${list}" var="class">
            <tr>
                <td>${class.classid}</td>
                <td>${class.classname}</td>
                <td>${class.state==0?'毕业':'未毕业'}</td>
                <td>${class.headmaster}</td>
                <td>${class.teacher}</td>
                <td colspan="2">
                    <a href="/class/del?classid=${class.classid}">删除</a>
                    <a href="/class/upd?classid=${class.classid}">修改</a>
                </td>
            </tr>
        </c:forEach>
    </table>
</center>
</body>
</html>
